import request from '@/utils/request'

const districtApi = {
  getAreaYdsb: '/api/ydsb/getAreaYdsb',
  updateYdZF: '/api/ydsb/updateYdZF',
  postProposerExamineBatch: '/api/OAB_Proposer/postProposerExamine_Batch',
  getDistributionManagement: '/api/distributionmanagement/getDistributionManagement',
  postDistriButionHouse: '/api/distributionmanagement/postFenHouses',
  getHouseFloorDetail: '/api/OAA_House/getHouseFloorDetail',
  getLeaseholderDetail: '/api/OAA_House/geebllNo001MainDetail',
  getHouseContractDetail: '/api/OAA_House/getebll_No007PactIDDetail',
  getFenHousesIdDetail: '/api/OAA_House/getFenHousesIdDetail'
}

export function getAreaYdsb (params) {
  return request({
    url: districtApi.getAreaYdsb,
    method: 'get',
    params
  })
}

export function updateYdZF (params) {
  return request({
    url: districtApi.updateYdZF,
    method: 'get',
    params
  })
}

export function postProposerExamineBatch (data) {
  return request({
    url: districtApi.postProposerExamineBatch,
    method: 'post',
    data
  })
}

export function getDistributionManagement (params) {
  return request({
    url: districtApi.getDistributionManagement,
    method: 'get',
    params
  })
}

export function postDistriButionHouse (data) {
  return request({
    url: districtApi.postDistriButionHouse,
    method: 'post',
    data
  })
}

export function getHouseFloorDetail (params) {
  return request({
    url: districtApi.getHouseFloorDetail,
    method: 'get',
    params
  })
}

export function getLeaseholderDetail (params) {
  return request({
    url: districtApi.getLeaseholderDetail,
    method: 'get',
    params
  })
}

export function getHouseContractDetail (params) {
  return request({
    url: districtApi.getHouseContractDetail,
    method: 'get',
    params
  })
}

export function getFenHousesIdDetail (params) {
  return request({
    url: districtApi.getFenHousesIdDetail,
    method: 'get',
    params
  })
}
